import Vue from 'vue'
import Router from 'vue-router'
import myButton from "../components/myButton";
import myTable from "../components/myTable";
import myBj from "../components/myBj";
import myFrom from "../components/myFrom";
import addBook from "../components/addBook";
import uplodaFile from "../components/uplodaFile";
import UsebTable from "../components/UsebTable";
import Gx from "../components/Gx";

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/myButton',
      name: 'myButton',
      component: myButton
    },
    {
      path: '/',
      name: 'myBj',
      component: myBj,
      children:[{
        path: '/addBook',
        name: 'addBook',
        component: addBook
      },
        {
          path: '/myTable',
          name: 'myTable',
          component: myTable
        }
      ]
    },{
      path: '/myFrom',
      name: 'myFrom',
      component: myFrom
    },
    {
      path: '/uplodaFile',
      name: 'uplodaFile',
      component: uplodaFile
    },{
      path: '/UsebTable',
      name: 'UsebTable',
      component: UsebTable
    },{
      path: '/Gx',
      name: 'Gx',
      component: Gx
    }
  ]
})
